package com.baosight.risk.mapper.ridc;

import com.baosight.risk.base.entity.MultipleUpdateStatus;
import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.service.ridc.entity.RidcRisk;
import com.baosight.risk.service.riim.entity.RiimRiskImport;
import com.baosight.risk.service.riim.vo.RiimRiskImportVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RidcRiskMapper extends BaseMapper<RidcRisk> {
    /**
     * 查询风险列表
     */
    List<RidcRisk> selectList(@Param("ridcRisk") RidcRisk ridcRisk);

    Integer updateStatus(@Param("status") MultipleUpdateStatus status);

    Integer updateRidcRiskByLastDate(@Param("ridcRisk") RidcRisk ridcRisk);

    List<RidcRisk> selectListByIds(@Param("ids") List<String> ids);

    List<RidcRisk> selectListByDept(@Param("import") RiimRiskImportVO importVO);

    Integer closeRidcRisk(@Param("riimImport") RiimRiskImport riskImport);
}